home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 19 / Amiga Plus Leser CD 19.iso / Tools / MorphOS / cvs-1.11.2 / source / lib / Makefile next >
Encoding:
Makefile  |  2002-11-18  |  1.9 KB  |  78 lines

  1. #
  2. # $Id$
  3. #
  4. # :ts=4
  5. #
  6. # AmigaOS wrapper routines for GNU CVS, using the RoadShow TCP/IP API
  7. #
  8. # Written and adapted by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  9. #                        Jens Langner <Jens.Langner@light-speed.de>
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version.
  15. #
  16. # This program is distributed in the hope that it will be useful,
  17. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. # GNU General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU General Public License
  22. # along with this program; if not, write to the Free Software
  23. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24. #
  25.  
  26. TARGET    = libcvs.a
  27.  
  28. #
  29.  
  30. CC        = gcc
  31. STRIP     = strip
  32. OBJDUMP   = objdump
  33. RANLIB    = ranlib
  34. AR        = ar
  35. RM        = rm -f
  36.  
  37. CPU      = -m68020
  38. CPUFLAGS =
  39. WARN     = -Wall
  40. OPTFLAGS = -O2 -fomit-frame-pointer -fstrength-reduce -resident
  41. DEBUG    = -g3 -O0
  42. CFLAGS   = -noixemul -I./ -I../ -I../src -I../amiga -I../amiga/netinclude -DHAVE_CONFIG_H $(CPU) $(CPUFLAGS) $(WARN) $(OPTFLAGS) $(DEBUG) -c
  43.  
  44. # CPU and DEBUG can be defined outside, defaults to above
  45. # using e.g. "make DEBUG= CPU=-mcpu=603e" produces optimized non-debug PPC-603e version
  46. #
  47. # OPTFLAGS are disabled by DEBUG normally!
  48. #
  49. # ignored warnings are:
  50. # none - because we want to compile with -Wall all the time
  51. #
  52.  
  53. OBJS     =  argmatch.o getline.o getopt.o getopt1.o md5.o regex.o savecwd.o stripslash.o \
  54.             xgetwd.o yesno.o sighandle.o getdate.o fnmatch.o
  55.  
  56. #
  57.  
  58. all: $(TARGET)
  59.  
  60. #
  61.  
  62. %.o: %.c
  63.     $(CC) $(CFLAGS) $< -o $@
  64.  
  65. #
  66.  
  67. $(TARGET): $(OBJS)
  68.     $(AR) rs $@ $(OBJS)
  69.  
  70. clean:
  71.     -$(RM) $(TARGET) $(OBJS)
  72.  
  73. #######################################
  74.  
  75.  
  76. #######################################
  77.  
  78.